-- GENERATED SPELL FOR [Razaani Spell-Thief] --


function spell0_20614(pUnit, Event) --@Energy Surge,n/a--
pUnit:FullCastSpellOnTarget(36508,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20614', 5000, 1)
end

function Sorts_20614(pUnit, Event)
local choix_sorts_20614 = math.random(0, 0)
if choix_sorts_20614 == 0 then
pUnit:RegisterEvent('spell0_20614', 1, 1)
end
end

function mob20614_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20614', math.random(1500, 3000), 1)
end

function mob20614_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20614_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20614_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20614, 1, 'mob20614_Action')
RegisterUnitEvent(20614, 2, 'mob20614_Leave')
RegisterUnitEvent(20614, 3, 'mob20614_Kill')
RegisterUnitEvent(20614, 4, 'mob20614_Die')
